import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.util.concurrent.TimeUnit;

public class JunitTest {
    public static void main(String[] args) {
        WebDriver webDriver = new ChromeDriver();
        webDriver.get("https://www.baidu.com");
        webDriver.manage().timeouts().implicitlyWait(3, TimeUnit.MILLISECONDS);
        webDriver.findElement(By.cssSelector(".s_ipt")).sendKeys("测试");
        webDriver.findElement(By.cssSelector("#su")).click();
    }
}
